home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / com_net / tcp / amitcp-sdk / src / examples / rpc / dir / smakefile < prev   
Encoding:
Makefile  |  2000-01-01  |  969 b   |  47 lines

  1. #
  2. #       $Id: Smakefile,v 4.1 1994/09/30 00:20:56 jraja Exp $
  3. #
  4. #       Smakefile for dir
  5. #
  6. #       Copyright © 1994 AmiTCP/IP Group, 
  7. #                        Network Solutions Development Inc.
  8. #                        All rights reserved.
  9. #
  10.  
  11. MAKE = smake
  12. RM= delete
  13. CC= sc
  14. RPCCOM= rpcgen
  15. LD= slink
  16.  
  17. #
  18. # Note that we have selected the register argument version of the rpc
  19. # library and the SCOPTIONS file has PARAMETERS option set to REGISTER.
  20. # Use the USE_DOSIO versions of the libraries.
  21. #
  22. LIBS= LIB NETLIB:rpcdr.lib NETLIB:netd.lib
  23.  
  24. CFLAGS= DEF=USE_DOSIO
  25.  
  26. BIN = dir_svc rls
  27. GEN = dir_clnt.c dir_svc.c dir_xdr.c dir.h
  28.  
  29. all: $(BIN)
  30.  
  31. $(GEN): dir.x
  32.     $(RPCCOM) dir.x
  33.  
  34. dir_svc: dir_proc.o dir_svc.o dir_xdr.o
  35.     $(CC) LINK TO $@ OBJ dir_proc.o dir_svc.o dir_xdr.o $(LIBS)
  36.  
  37. rls: rls.o dir_clnt.o dir_xdr.o
  38.     $(CC) LINK TO $@ OBJ rls.o dir_clnt.o dir_xdr.o $(LIBS)
  39.  
  40. rls.o: rls.c dir.h
  41.  
  42. dir_proc.o: dir_proc.c dir.h
  43.  
  44. clean cleanup:
  45.     $(RM) $(GEN) \#?.(o|map|lnk) $(BIN) \#?!
  46.  
  47.